Updated password handling

- Password hash and salt are now stored in password model
- All database functionality is moved to model files