Start of cleaning, database structure program and things for memory optimization