[db] prepare families table