Sacramento dog gets second chance at life