database.xml read-bug fixed