add postgresql support
optimize traffic counter queries
possible fix for postgresql+sphinx indexing issue?
Merge pull request #87 from srgpqt/postgresql

add postgresql support for sphinx and Keystore