Fixed database variable error

Change-Id: I511aabdb05e5cc77b7423d4c19866c34d1cd42b2