Function getDbInstance

Get a new DB instance using the passed options