category implementation

1. action bar with category dropdown implemented
2. bug fix for making parsed data commit twice.
3. added unique constraints to certain colmuns