fixes: multiple mysql connection fixes

* plugin no longer crashes when is started without connection
  to database.

* plugin will inform user if connection to database is broken
  and loging feature is no longer enabled. TODO: in this case
  we will need local cache to store messages until database
  will be online.

* added command to refresh configuration and restart database
  connection.