db: only allow functions to be saved to one function pointer