Use pquery for query execution instead of query

1. In api addField(), use pquery for query execution instead of query
Please remove debugging statement

Please remove debugging statement from file like. console.log