Fixed sql error for bound services