add refresh option to get_db, update db config for testing
Merge pull request #2 from iainb/master

add refresh option to get_db, update db config for testing