update schema fix routes