changed database over to postgres