minor changes: sql fixes and queue status extented
Merge branch 'master' of github.com:radetsky/Pearl-PBX