working database calls for one user