Update comparison checks when testing the database status and
add a unified log message with a more detailed message from the
database when there is a failure
Authored-by: Tim Fry <tim@fusionpbx.com>
* add database_maintenance function to database_transactions
* update database_maintenance function in database_transactions
New changes in the maintenance application required changes to any
existing functions already created
---------
Co-authored-by: Tim Fry <tim@fusionpbx.com>