Fix db baseline and upgrade to work with remote host

Add --host switch to MySQL call.
Fix db baseline to skip already versioned DBs