db_mysql: safer conditions inside sb_add() for db api v2