DQSharedQuery: Added finish() function to instruct database driver that no more data will be fetched form this query. Make sure the database is not locked.