Switched from sql lite to postgres