split off glance db workaround from rest of glance config script