Need to handle which the primary db type is for the staging databases.