add WarDB class with create tables on init.
+minor fixes