fix clean_db with cols named differently than *_db

now database name is taken as the token before first _, consistently with update db