You do not need to retake the MCAT and can apply with your score of 511. 60% of California applicants who are admitted to MD schools attend OOS schools so you cannot depend on CA schools. Indeed, 60% of CA applicants do not receive any MD acceptances. I suggest these schools with your stats:
UC Davis
UC Irvine
UC Riverside (if you are from that region)
UCSD
UCLA
USC Keck
California University
Kaiser
Loma Linda (if you fit their mission)
Vermont
Quinnipiac
New York Medical College
Seton Hall
Drexel
Temple
Jefferson
Penn State
George Washington
Virginia Commonwealth
Eastern Virginia
Wake Forest
NOVA MD
Florida Atlantic
Florida International
Central Florida
Tulane
TCU-UNT
Rosalind Franklin
Medical College Wisconsin
Oakland Beaumont
What are your ECs including hours in each activity ?