switch from using sqlite to posgresql on localhost