fix device parser to allow adding device manually by getting all from database