revise database name & change all to lower case