updated ORM code and specs for writing game results to database