adding extra parameters to db connection