added 'query all' and 'add record'  from schema