Models

The initial move from postgresql to mysql. Removing the usage of ARRAYs in the database as well as introducing the proper relationships between classes.