All functions and methods that take db as an argument now require it as the first argument.