migrate pins into db