changed to PG database