change db test to $CI->db