fixed route so that it pulled sourceArray from db and then created an array with just links