added a db connection checker