Added parameter to db calls and api