move SQL queries for mark_all_posts_as_read out into libertree-db
move SQL query for river.posts to libertree-db