db_sync: correct logic, do not ignore failures

Simplify and correct logic to not ignore errors which may occur when
checking the db_version using the manage tools.

Also remove no longer needed exit_status module.