Added configurable functionality for connecting to a mysql server