Merge branch 'devel'

Signed-off-by: negram <bespoleznyak@narod.ru>
optimized queries
Merge branch 'master' into devel