Refactored db interface to mandate parameter names.