working on moving stuff in do.rb to pull data from the database