Removed the debugging error handler from the database example.
Added in an example for database with dependency injection.