more work on SQL-support (still incomplete)