Added length checks to match db
Added Archive Repository Tests