Fixed use of wrong variables in installer db call