fixed up some ip code
Merge branch 'sqlite3-work' of https://github.com/dkran/pixel into sqlite3-work