Fixes expression handling for SQL.
Adds inheriting sql action.