core: more error messages instead of match error.
modules: check if table is present before trying to create it.
This solves an issue if there are still tables and the module is re-installed.