Using PG as database