Created a datastructure and db initializer