Adds database monitoring and logging