Initializing db in ring init