Updated database operations with user method
Added class User