added design of db