fix database name issue