got rid of declaration in DD

want to send in a custom message and not just pull up the page when a
database error occurs