Create functions table
Move functional roles to specific model and db table