changed listing.rb to connect to DB