Remove dead code
Move DB queries into a Repository class
Bootstrap the add entry API