fix db migration on postgressql server