adds testing for active items in database