Check for db connection before QuickAuth