Adding pinned to db