#3 [DB] fixed wrong usage of C-API in RepairDB()