DbCursor: reorder query/transaction release

Release queries earlier than transaction to make sure that life-time
of Cursors is within transaction

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <norluk@luxoft.com>
Change-Id: I9043af8836f670156b412b9f7976ec0bf6ca3502
Reviewed-on: https://g2g.palm.com/2203
Reviewed-by: Build Verification
Reviewed-by: Nikolay Orliuk <norluk@luxoft.com>
Tested-by: Nikolay Orliuk <norluk@luxoft.com>
Reviewed-by: Maksym Sditanov <msditanov@luxoft.com>
Tested-by: Maksym Sditanov <msditanov@luxoft.com>
Reviewed-by: Roger Stringer <roger.stringer@lge.com>