core: fix spec of function.
core: better error messages for z_db:q and q1 in case of sql errors.
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.