Remove useless database call

Follow-up to Change-Id: I7c5bb0277f0912673f52ef0af79d25aec7d5802f

Change-Id: Iaa8ff881139d2f128df300d2a099cfa5667b713e
Merge "Remove useless database call"