Added a new class : DQThread - it provides a thread to manage database query