Revert "SERVER-16431 Simplify DB profile code"

This reverts commit c5ebc6be8e3a865655acbc5ecd1cb3b96fdf44ff.