Add internal database structure
Add sync interface