add logic to /q gtfsdb