created db_func file