update db schema
insert received logs into their table

insert global data into server db
store logs before inserting them