little correction in database's query.