migrated abstract user database calls to new query builder