update two post
update post:database algorithm