Fix interface being a class
Add id to created records and fix var not defined error
Make an alias function for getting connections dynamically