Added better error controll and deletion of turns form db. if not synced