Added Advanced Field

Added advanced field for custom SQL queries.