Implemented messages for SQL and database errors.