Preliminary patch for SF.net request #13: allow custom friend DB name

(cherry picked from commit f8ca2c73aabb40fdcf0c5fb8db6fb1bb9bb67bfe)