create tables for new function key schema