DB reconnect on main screen working