Dump the database and replace all http urls; for instance: `sed -i -e 's|http://mysite.com/|https://mysite.com/|g' mydump.sql` and reimport it. Most often, there's always one setting that doesn't get switched.
(keep a copy of the original db just in case)