Pass db parameter to get-by-name function calls