added select function

for choosing database. I don't think tests are necessary for this.
check for existing callback function
updated callback values
Merge pull request #4 from paul-em/patch-2

added select function