add refresh option to get_db, update db config for testing