Database changes from sqlite to Pg