make builddb be an importable module.