updated to use settings username and password for database
has_model can be true
requires has_model