fixed index, added broken /getByDate