Categories from db

* The Reports view obtains the list of categories from the DB
* Bug fixes: Reports model allows assignment of category_id and trail_id