What key is this lick in? It has the following notes: A,B,D,E,G,Bb and Db.
Well, everything except the Db would fit in a Emin blues or a G major blues scale. But with the Db I don't really know
If it was rooted on E it would be E Dorian with a flat fifth (blue note).
Where's Waldo?
Easier way of thinking about it.

I like to play in E (gives me utilization of open notes, which I like) alot, so I automatically rooted it in E...
Where's Waldo?