updated DB contract and content provider: implement means for unique and
join queries