here's my broken code - starting to add search SQL commands