changed use of database name to match with the one in config file