added user model and basic authentication
configured postgress for testing in production mode