API uses new db fns