Fix syntax errors in db.rb and post.rb