fixed -DSOCI_EMPTY=ON; fixed condition