Made changes

Added rudimentary data saving and started work on database