updated database schema because of new database structure
implemented all insert funtions
todo: data validation
updated functions because of new database schema
added classes to handle group and model request