New blog post submission, better error handling and redirect history fixes. Also, db.query returns insert_id.