blog 32 Refactoring our code to use the Database class