new sql post and page edit