add relational connection (a factory of sorts)

Signed-off-by: Dylan Borg <borgdylan@hotmail.com>