Added ancestor as argument in get_dbs

Line is too long but maybe I'll leave it like that.. breaking it it looks ugly :)

(but might be changed.. no promises)