need to redo database