some db backend cleanups