add postgresql support
optimize traffic counter queries
possible fix for postgresql+sphinx indexing issue?