update DB handling

- better DB control
- open issue: mutex control (multiple categories try to add)