[SR-Dev] [PATCH 02/10] Various db api changes needed after migration to libsrdb1