Moved db management to Setup subpackage