pass q key to db methods