change datastore from sqllite3 to postgres