Make the ping endpoint check the database