users and books are saved and loaded in DB; refactoring