fix db not fetching record values
temp save
need to get sheduled cards algorithm