user model can now read and write to the database