Changed the code referring to the name of the database:  Now using `calchours' instead of `ldf'.