Some of these medications include prilosec, nexium, prevacid and protonix. These drugs can cause deficiency in b12 which can lead to depression.