change initial function and database