Birds are very wary of new things such as a black hat and sunglasses. I put on yellow plastic gloves one time to clean the cage and Polita bit me hard enough to break the skin thru the gloves. She has never done that before or since. It was obviously the gloves that freaked her out.
Birds don't respond to anything other than positive reinforcement. Yelling only makes them withdraw or worse. A strong "no" in a calm voice, or better yet, ignoring bad behavior will do more to change it than anything else. I understand that when you are bleeding it is hard to keep your cool, but it is really the only successful way to deal with bad bird behavior. Birds can't stand having their loved one ignore them. Attention and food treats are the best rewards for good behavior.
Your bird is probably going thru some trauma from being away from its home, out on its own for who knows how long and now with you in yet another new environment. Remember, birds take a while to adjust to anything new. Abram may get over what he considers David's betrayal and he may not, but it will take time and patience.
You didn't say what kind of bird you have, but I would strongly recommend a bird care class. There are often free ones offered in most locations. If not, try to read all you can get your hands on about the care of your bird. Some pet stores, libraries and books stores are good sources of info. Checking in to this site is also an good idea. Welcome. There are many knowledgeable bird owners here. Living with a bird is big fun. Good luck and enjoy!