Fix glance database configuration setting

Use the non-deprecated setting and use crudini
to actually update the config file.

(cherry picked from commit 89e8bc9935138959fe54814538ee3cff21e1fca0)