added the ability to change DBs