tests: added 'initDb' method which is called from client first to make running tests several times possible without server restart