<DE2> Database
Fix few memory problems caused by database struct.