Add chain and links model and links them with user

links have chain_id and user_id