Missed pass-by-ref. Remove fix_prefix compatibility and use it through $db.

Signed-off-by: Norv <a.w.norv@gmail.com>
Fix buggy use of globals.

Signed-off-by: Norv <a.w.norv@gmail.com>
Update documentation for fix_prefix.

Signed-off-by: Norv <a.w.norv@gmail.com>
Merge pull request #430 from norv/cleanups

Cleanups