database character problem fixing