changed script to use $HOME/.config for config
changed script to use same for db