Icingaweb2 database error

After running node wizard with one as master and other as satellite(which should also be second master). I configured pretty much everything but failover doesn’t happen when i shutdown first master…

I am getting this error on icingaweb2 after I changed the database from local to a dedicated server. Also icinga2 database doesn’t show any entry in show tables.

SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘icinga2.icinga_dbversion’ doesn’t exist, query was: SELECT icinga_dbversion.version FROM icinga_dbversion
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘icinga2.icinga_dbversion’ doesn’t exist