Draft: fixed: Promote_database only runs if db is a replica
What does this MR do?
Makes the promote_database code only run if the database is a replica, or trap the error about the database already being promoted, and return success.
Verification Steps
WIP
Related to #8220
Edited by Natanael Silva