updated gems and configuered app to run postgres