ER-diagrams and sql scripts for database