Changed idoubtit to save and load from the database.

slightly rewrote the idoubtit game to work with rails and changed the saving and loading functions.