Add PostDb.put(Collection<Post>) and PostDb.getAll().

This also required refactoring the get-by-ID queries, since SQLite supports at most 1000 variables in a single query. This broke on IN (?, ... ?) queries for a very large number of posts.