added migrations and command to update times