fix exception when no posts are in database
fix exception when no posts are in database

Instead of using Query.one use Query.one_or_none. The check after
setting the variable suggests this was the intended behaviour instead
of throwing errors if there are no posts in the database.

codl/forget,codl/forget,codl/forget,codl/forget