Simplify: move code into database functions | Hacker News Reader