created a database model plus proofed some stuff