add pg gem
add index route
fix bug