added function rootkey + prefix for table ( import-model)

added rootkey function. This as it can happen that people will import
category's without a column parent_id. If it's not there it will add the
parent_id of the root category.

The prefix is done as we do have new + old tables at the moment.