added bug checks for the definition of DB information.