Fixed SerialPort crashes, added async & DB

lots of small fixes