Error in sending links to DB