bugfix; <class 'locale.Error'>: unsupported locale setting (use 'utf8' locales)
improvement; check db existence in case of error only

Change-Id: Id6042f43a943afaa0fd1e1f39677c004ae4a2fdc