Actually what you have made here is a clamp - it's just not store bought!
You have demonstrated very smart work and "thinking outside the box". I make things like this constantly (never exactly this though) and they're super handy and easy on the budget. We woodworkers very frequently find ourselves in situations where using something "home-made" is the best approach to successful construction. Very nice! OPG3