Freed malloced data
Modified function prototypes
Corrected reading of data from file

Changed function prototype of dump_database, printing data internally
now and modified append_database to write using Windows and Linux
newlines