added stacks to db