Sql tables

We need to discuss some design decisions within the database but these tables should be a good start.