done, added the param for db as well