Added check for nonrel db type.