db check

Simple check to the functions to see if gamemode was able to connect to database or not.