valify database connections before pin