db/smdb.py: fix the PARAM_COMPARE/LIMIT types