corresction 22

- fixed a bug in outputting the date
- added check for capability
- fixed some codestyle errors
- fixed performance issue regarding DB query in a loop
- added a CSS-file
- added MUST_EXIST flag in get_record functions