Clean up database from unused tables