db optimization add post