lib: sanitize filenames in database files
lib: add `git config` calls in DB init
Merge branch 'git_db' into fix_travis