Efficient Access to RDBMS from within Rules