Get data from ap and save data in database
Add log
replication