rearranged js file order
removed unnecessary question creation
moved question type to db