SQL statement fns require database as first argument