* class to interrogate database