database layer for Firefox Accounts server