Update map_controller.rb

Rectified for SQLite3 exception.