added raw sql query feature