script to adapt db to new structure