Creates function for insertion into links table. Also
adds a test to tests/test_schemaGeneration to verify