fix db result for sqlite (with minimal impact to the CodeIgniter source code)