make sync all posts from earliest to lastest
change before date task to after date task
refactor code