Extending, refactoring and testing database code.