some work on annotate_db()