Fix updated_at shedule bug & replace query in models