Catch error if dbid is empty or no number