pg gem and db changes