Redesigned database using RDiaTool and replaced previous database.
Removed tmp directory