db: store "too common" functions in the database