Rewritten DBIO module as a function. Use is now somewhat easier.