- updated sql
- updated classes with new lines at the end of the file
+ added toArray methods for categories