modify to use db name