add database to docRef