Changed database connection function

modified database->connect() function to accept host, user, password,
and database.