implemented classes for database and breadth first search