Change db from sql to pg