modified, used a single query and improved naming and other instructions
changed schema, removed redundant fields
changed the schema, used single query for maximum