added the necessary models to the database schema, modified some of the ranking code
merged