Added SQL for tables