Added a check for the table in mysql, if it isn't present throw an error.