add remote database support; fixes #8
bugfix - using common.json now