Ming Jin: fix issue of glance registry using sqlite instead of mysql