db script now uses staging db