fix database cookbook