Fix paramaters passed to database downgrades

Change-Id: I8f9e7373640b0bf9953f3bc2363391d1e001ca01