databas fix + sensor fix