preliminary design. back to db