Method for ensuring privacy while querying a database by using quantum superposition and multiple responses