CustomerDB and BaseDB improvements

- Include easier query build for update, insert and select
- Add extra controls