Able to Submit Blog Posts and store them in the database

I've made a query which inserts the post and title into my database. Once successful at doing so, it echoes out a message stating its success! If not successful, it echoes out its error.