minor bug fixes, tingodb basic implementation