check for dbid > -1