port db code to postgres