created User class and can save data in database