update db, add part of autofill code