Fix to sql_query

Added a path parameter to all arguments to avoid hardcoding engine path
inside of module