get all works and get categories