MOSYNCLIB-21: Fix where args 4-6 could be shadowed by local vars (affected a couple of db functions).