move some functionality of bob.bio.base.database.BioDatabase to here

12 jobs for refactoring_2016 in 4 minutes and 27 seconds (queued for 6 minutes and 15 seconds)