added some features for database testing, began search algorithm work