Check database exists in codeigniter