Refactoring my Qt database code | Hacker News Reader