changes on db design, see further comments

Changed ER diagram and added logical design of database onto the
documentation.