databse schema, updated with join table