Put mysql command into a variable and add support for a password (when it's not empty).

Double-check if the database hasn't been created before we re-import all tables.
Merge branch 'master' into refactor/opsworks