working on database sctructure