hote_database reads in and sorts data