[jmdb, nim] Use proper db