Support better thread safty through a database object