Fix for updating existing posts in the database.