added queries to class database