Add support for AnswerPost to SqlitePostDb.

Also, refactor SqlitePostDbTest to allow code reuse between tests for different kinds of posts.