added implementation for SimpleCrateRespository. fixed bug in CrateTemplate for Select without giving id (select all). added test cases