reworks gem files and db config for postgres