Added and updated quadtree implementation, added db classes