Fix Typo in db/functions.sql