Add database checking in ping and create a stub for it