Added [if not exists] to [create database] clause.

this should avoid errors like:
ERROR 1007 (HY000): Can't create database 'MyDB'; database exists

This error can cause a multi-master replication to stop due to conflicting
commands between nodes. For  example, if the command create DB is run in
 different nodes and then they will send it in the replication logs to each
other and then they will try to run them second time and fail.
Fixed testing for creating a DB with the [if not exists] clause
changed log_error to log-error and pid_file to pid-file to match the mysqld service script
Merge pull request #397 from srinathman/feature-create-db-if-exists

Added [if not exists] to [create database] clause.
Minor fix to beaker tests.
Merge pull request #403 from apenney/fix-tests

Minor fix to beaker tests.
Merge pull request #394 from danielfoglio/master

changed log_error to log-error and pid_file to pid-file to match the mys...