Moved db initalizer.