Major refactoring

- removed old database code
- removed old documentation. Moved relevant content from that into
  `README.md` files in the subdirectories