Create sync database, table and indexes