There is already a feature to edit posts, see the pencil icon next to your post.
Your original error indicated a problem with your connection string, specifically it said the instance name of the database was not correct, maybe you had \SQLExpress as the instance name and that needed to be removed.
Hope it helps,
Joe