Fixes pull_database.rb for testing