How to add a custom query in a data connection