bugfix
add html-encoding, make db-writes only if needed and remove test-data