Solved a bug with a setInterval in db exchange data