separated db operations from views. added query result sorting
Merge branch 'master' of github.com:cloudengine/CloudEngine