added db tests and made resetTables add distances for itembased recs