add query data from db.