Fix clearance db generation