i fixed users, references and links so they all will put entries into the database
users,links,references
link,reference working correctly need to be linked
links,reference and user