Adding in logic to create the table if it doesn't exist.
Forgot the table name in the check.