SQL session overflowed issue #434

Signed-off-by: Gergely Tóth <tgely@gumisarok.hu>