Move local database logic to Q/R widget
Move local database logic to Q/R widget

Q/R widget can be used from ctkDICOMViewer app by passing
in the database that it should be using.

fedorov/CTK,vovythevov/CTK,vovythevov/CTK,ddao/CTK,finetjul/CTK,commontk/CTK,pieper/CTK,finetjul/CTK,mehrtash/CTK,pieper/CTK,naucoin/CTK,rkhlebnikov/CTK,msmolens/CTK,CJGoch/CTK,fedorov/CTK,espakm/CTK,lassoan/CTK,naucoin/CTK,commontk/CTK,commontk/CTK,151706061/CTK,ddao/CTK,naucoin/CTK,sankhesh/CTK,vovythevov/CTK,lassoan/CTK,CJGoch/CTK,laurennlam/CTK,sankhesh/CTK,AndreasFetzer/CTK,Heather/CTK,fedorov/CTK,SINTEFMedtek/CTK,CJGoch/CTK,naucoin/CTK,Heather/CTK,danielknorr/CTK,151706061/CTK,vovythevov/CTK,finetjul/CTK,SINTEFMedtek/CTK,Heather/CTK,mehrtash/CTK,Sardge/CTK,mehrtash/CTK,CJGoch/CTK,msmolens/CTK,lassoan/CTK,Sardge/CTK,jcfr/CTK,Sardge/CTK,AndreasFetzer/CTK,laurennlam/CTK,lassoan/CTK,sankhesh/CTK,rkhlebnikov/CTK,SINTEFMedtek/CTK,msmolens/CTK,mehrtash/CTK,jcfr/CTK,espakm/CTK,msmolens/CTK,rkhlebnikov/CTK,espakm/CTK,pieper/CTK,Sardge/CTK,151706061/CTK,laurennlam/CTK,jcfr/CTK,AndreasFetzer/CTK,CJGoch/CTK,ddao/CTK,sankhesh/CTK,SINTEFMedtek/CTK,danielknorr/CTK,jcfr/CTK,danielknorr/CTK,danielknorr/CTK,laurennlam/CTK,SINTEFMedtek/CTK,espakm/CTK,151706061/CTK,rkhlebnikov/CTK,pieper/CTK,finetjul/CTK,fedorov/CTK,151706061/CTK,jcfr/CTK,AndreasFetzer/CTK,ddao/CTK,commontk/CTK,Heather/CTK