tables and sql sync