If a database has been passed then switch to it in mysql mode