[keyserver] Extract database error codes
Summary:
Keep all the db error codes in a single place.
Depends on D8494
Test Plan: Flow. Searched for all the errno usages to find all the codes we might use.
Reviewers: kamil, inka
Reviewed By: inka
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D8608