reorganise table creation

- remove unused tables
- make apache user configurable
- introduce configurable tablespaces