refactor puma and database connections
bundle update
update rails to 4.1.1