prep hive db