Revert "Revert "moved db details""

This reverts commit 6ddf2087e39172dd132bb0652ef699af9fa81ce1.
Calling parent const