begin migration to postgresql