Database-independent create and drop functions