add expanduser to allow ~/ in file name
Merge pull request #368 from michaelrice/sqlite_fix

add expanduser to allow ~/ in file name