Fixed the sync now no more crash on boot if the db is void, now download and insert run on a separate thread