Add some verifications

Add some verifications before inserting / retrieve url