Small Changes

This copy still throws an error on the db.savechanges. I made it so the
query.max() could be null because if there isnt any entries for it to
max then it will be null then I add 1 to it. I dont know what the issues
are with the save...