Added files for logging on the python side

Also made the appropriate edits to the database. Closes #4.