refactored the code, counts number of user actions instead of all names

I also made changes to DB names and data types as requested; please check for your own purposes.  Program still needs way to receive subject IDs.  The code for saving to a server is commented out and currently uses the local save function.  Also, currently I think this can't be used on an iPad because to my knowledge a tap does not count as pressing the enter key.