fixed up imports, updated todo items, created individual functions for db processes