Added ping to db connection attempts