Removed the database code because it wasn't needed. Simple file I/O is fine