Blog and post pages not quite working , problem inserting in the databse