Cache available tables
Add support for custom joins