Use bind_result instead of char_result
Removed obsolete char_result
Removed obsolete const cast