Added two parameters to alert on the maximum number of threads the database is running.