database schema and deleted old stuff