Fixed a bug that prevented insertion

It was because I was querying a non-existing table, and so, MySQL will
simply throw an error.