Added SQL for tables.