database: Fix connecting to remote database.

autotest-database-turnkey can take the hostname of the database server.
Some MySQLdb.connect calls omitted the host parameter and would default
connect to localhost.

Signed-off-by: Vinson Lee <vlee@twitter.com>