Modified postgres to work with amazon