Minor bugfixes.

- wrong or fogotten header files
- wrong sql test data type insert
- bugfix in balancedialog