Added database handling file