Add databases thread