Added the implementation of the CategoriesManager and improved the Sqlite
backend.