move schema into seperate module