make database healthcheck cross database

fix fo #1258