DBmodel now takes mysql connection information as input, preventing it from needing a database connection to be hardcoded.