Added migration to create indexes
Updated time converting