test case insensitive database result to form mapping