adapting the date match code to fit new database