Prisoners freed after cops struggle with new records software