Refactoring in DB plugin

- Move BoneCP related code in a separate file
- Import cleanup
- Source formatting
Moved in the new separate file (see before)