Fix character lookup from database