Sounds good on the indexes. I'm not very happy with this method, as I'm not sure theres a way to check the parameters in the SQL query itself. This will probably get very slow as the db grows