Tikiridb long running queries

Implementation with "LIFETIME" keyword.