Modifying format of words to integer migration to make Postgresql happy.