choose timeline queries based on database connection adapter
users can see only tickets created or owned by him, except for admin users