change sqlite gem to postgres