added some comments and made code cleaner, trying new Gemfile that won't require me to comment out sqlite3 and pg 3 depending on env