Database monitoring scripts