add sql for post