client and server share common DB interface