Rails app with postgresql DB