refactored reload db script to use a wrapper