Added dbWrapper

Contains some test code for now
Testing will be done in another branch