extract categories from db in post method when add survey