Fixed the database structure and removed old backups