change subcat and cat, done search js, add time format
add migrate main models