video 32- refactoring our code to use the database class