now with the ability to change database