Added config params to the database connection stuff.