Setting up db in ap.rb
Page in query
Considering the existance of page when scraping
Fix to issues not saving data to db