Monitoring the database