added migrations and datetime field