Fix database unit test environment
Currently it seems that the database unit testing environment does not clear the database indexes when clearing the database itself.
There might be also other problems that shall be fixed within this issue to get Apros unit testing back to working condition.