Only use the db functions for migrations if USE_DB_FUNCTIONS is set