Automatically check for DB existence and level whenever a script is accessed