what is the importance of query in database​