fixed function for custom query's & added a function with return
added the ability to execute custom query's