I am getting more systematic about this. Commenting out the query works and is successful. This means the query statement I have created breaks the database or its syntatically wrong I'm guessing. Maybe a callback is required? I added one.