fix bug in query to db
update composer.json