Fixed JSON builders and rails models to reflect changes made to the database.