move getCategoryNames to CategoryDao and use Array instead of List for
return value.
fixed warning
added todo