workaround for sqlite/python issue

also use $HOME instead of ~