Create hsdatabase.js

this code was copied from https://raw.githubusercontent.com/phormanns/hostsharing-play/master/library/