Seperated out the stacks configuration and database population