updated the ruby_controller.py to include pushing sentences to the database