A database implementation for finding people's bacon number