fixed admin.py and custom sql
Merge branch 'master' of https://github.com/trombastic/PyScada