Database addition

Added database storage functionality to the application