Working with user database