Add puppet script & migrate sqlite sql to pgsql sql