change the checkinn from csv to dbi