updating classes db functionality and building out structure