created database and connected it with main.rb