pinging database